package principles.demo3.after;

import principles.demo3.after.cpu.InterCpu2;
import principles.demo3.after.disk.XiJieDisk;
import principles.demo3.after.memory.JinShiDunMemory;

/**
 * @description: 电脑测试类
 **/

public class ComputerDemo {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.setDisk(new XiJieDisk());
//        computer.setCpu(new InterCpu());
        computer.setCpu(new InterCpu2());
        computer.setMemory(new JinShiDunMemory());

        computer.run();
    }
}
